package icom.acm.net;

public class EmailThread implements Runnable {
	Thread thread ;
	String value;
	String to;
	String subject;
	String body;
	
	public EmailThread(String v, String t, String s, String b){
		value = v;
		to = t;
		subject = s;
		body = b;
		thread = new Thread(this);
	}
	
	public void start(){
		thread.start();
	}
	
	@Override
	public void run() {
		SendMail sm = new SendMail(value, to, subject, body);
		sm.send();
	}
	
	
}
